using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace XiaoMan.Model.Models.Mapping
{
    public class Sys_RelationMap : EntityTypeConfiguration<Sys_Relation>
    {
        public Sys_RelationMap()
        {
            // Primary Key
            this.HasKey(t => t.RelationID);

            // Properties
            // Table & Column Mappings
            this.ToTable("Sys_Relation");
            this.Property(t => t.RelationID).HasColumnName("RelationID");
            this.Property(t => t.UserID).HasColumnName("UserID");
            this.Property(t => t.FollowUserID).HasColumnName("FollowUserID");
            this.Property(t => t.GroupNameID).HasColumnName("GroupNameID");
        }
    }
}
